<template>
 <div>
  御剑乘风来,除魔天地间! ----我是爷爷 {{ msg }}
  <hr>
  <FatherCom></FatherCom>
 </div>
</template>
<script>
import FatherCom from './components/FatherCom.vue'
export default{
    name:'app',
    components:{
      FatherCom
    },
    data () {
        return {
            msg:'爷爷给你们发糖了'

        }
    },
    provide(){
      return {
         msg : this.msg,
         say:this.say
      }
    },
    created () {
    },
    computed:{
    },
    methods:{
      say(msg){
      console.log('跟着爷爷说,爷爷真帅')
      this.msg = msg
    }
    }
}
</script>
<style lang='less'  scoped>
    
</style>
